package www.shw.com;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Test {
	public static void main(String[] args) {
		System.out.println(Integer.toBinaryString(1024));
		System.out.println(-100
				>>4);
		
		
	//定义数组
		int[]  n;
		int n1[];
		
		Integer[] a = {6,3,4};
		int[]b = new int[]{};
	
	//数组拷贝
		Integer[] c=new Integer[a.length];
		/*for (int i = 0; i < c.length; i++) {
			c[i]=n[i];
		}*/
		System.arraycopy(a, 0, c, 0, a.length);
		List<Integer> aa1 = Arrays.asList(a);
		List<Integer> aa2 = Arrays.asList(c);
		System.out.println(aa1);
		System.out.println(aa2);
	//数组转换list
		Integer [] dd = {1,8,3,5,4};
		Arrays.sort(dd);
		List<Integer> list = Arrays.asList(dd);
		System.out.println(list);
	//list转换数组
		ArrayList<String>t1=new ArrayList<String>();
		String[]ss=(String[])t1.toArray(new String[0]); 
		
		
		
	}
}
